<script setup>
import Search from "@/components/common/search.vue";
import Tables from "@/views/system/role/components/tables.vue";

const content = ref({});
const query = (val) => {
  content.value = val;
};

const isShow = ref(true);
const isSearch = (val) => {
  isShow.value = val;
};
</script>

<template>
  <div class="jia-box">
    <Search v-if="isShow" search-name="菜单名称" @query="query"></Search>
    <Tables @search="isSearch"></Tables>
  </div>
</template>

<style scoped lang="less">

</style>